﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PR_SalaryPromoteCmdDtls.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.PR_SalaryPromoteCmdDtls" %>

<%@ Register src="../Controls/MasterYear.ascx" tagname="MasterYear" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>การบริหารค่าตอบแทน/บัญชีแนบท้ายคำสั่ง</title>

    <style type="text/css">       

    </style>

    </head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
  <link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../Scripts/DatePicker.js">        
    </script>
    <script type="text/javascript">
            function onTextChange(sender) 
            {
               if (sender.get_value() == "") {
                   sender.set_text("");
               }
           }
            function onTabSelecting(sender, args)
            {
                if (args.get_tab().get_pageViewID())
                {
                    args.get_tab().set_postBack(false);
                }
            }
            
        </script>
<script type="text/javascript">   

          function isNumberKeyDot(event)  // ตัวเลขทศนิยม
          {
             var charCode = (event.which) ? event.which : event.keyCode
             if(charCode > 31 && (charCode < 48 || charCode > 57) && charCode != 46){
             //    alert("กรอกได้แต่ตัวเลขทศนิยมครับ!")
                 return false;
	          }
             return true;
          }
          function isNumberKey(event)  // ตัวเลขอย่างเดียว
          {
             var charCode = (event.which) ? event.which : event.keyCode
             if(charCode > 31 && (charCode < 48 || charCode > 57)){
//                 alert("กรอกได้แต่ตัวเลขครับ!")
                 return false;
	          }
             return true;
          }
           function onTextChange(sender) {
                    if (sender.get_value() == "") {
                        sender.set_text("");
                    }
          } 
            function openProjectDetails(id)
            {
                radopen("PR_SalaryDetail.aspx?id=" + id , "ProjectDtls");
                 return false;

                //maximunWindow();
            }
            function openWin()
            {
                var oWnd = radopen("DialogEmp.aspx", "RadWindow1");
            }
</script>
      
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="ddlEmployeeType">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblTypeYear" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ddlEmployeeType">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ddlYear" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
             <telerik:AjaxSetting AjaxControlID="ddlEmployeeType">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rdoAppraisal" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ddlEmployeeType">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblMsg" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ddlYear">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rdoAppraisal" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            
            <telerik:AjaxSetting AjaxControlID="ddlYear">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblMsg" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadGrid2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>            
            <telerik:AjaxSetting AjaxControlID="RadGrid3">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid3" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            
            <telerik:AjaxSetting AjaxControlID="btnSearch">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnSearch">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid3" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadGrid4">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid4" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid4" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            
        </AjaxSettings>
    </telerik:RadAjaxManager>

       <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server">
    </telerik:RadAjaxLoadingPanel>
    
    
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
<Windows>
    <telerik:RadWindow 
        id="ProjectDtls" 
        runat="server"
        showcontentduringload="false"
        VisibleStatusbar="false"
        title="--"
        width="1100px"
        Height="600px"        
        Modal="true"
        behaviors="Close">
    </telerik:RadWindow>
</Windows>

</telerik:RadWindowManager>

        <asp:Label ID="lblID" runat="server" Visible="False"></asp:Label>

    <link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" />     
    
            <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="2" >
                <telerik:RadPageView ID="RadPageView1" runat="server">
                    <div class="moduleDivSlim1000">
                    <div class="moduleDivBottom1000">
                    <table align="center" width ="980px" >
                        <tr>
                            <td align="left" class="tableHeader">ค้นหาข้อมูล</td>
                        </tr>
                    </table>
                    <table align="center" width ="980px" >
                        <tr>
                            <td width="10%">ประเภทบุคลากร :</td>
                            <td align="left" width="25%">&#160;
                                <telerik:RadComboBox ID="ddlEmployeeType" runat="server" 
                                    AllowCustomText="true" 
                                    AutoPostBack="True" 
                                    CausesValidation="false" DataTextField="Name" 
                                    DataValueField="Sequence" 
                                    EmptyMessage="... เลือกประเภทบุคลากร ..." 
                                    Filter="Contains" 
                                    OnClientTextChange="onTextChange" 
                                    onselectedindexchanged="ddlEmployeeType_SelectedIndexChanged" Width="200px">
                                </telerik:RadComboBox>
                                <asp:RequiredFieldValidator ID="v7" runat="server" 
                                    ControlToValidate="ddlEmployeeType" ErrorMessage="*">
                                </asp:RequiredFieldValidator>
                            </td>
                            <td align="right" width="5%">ปี : </td>
                            <td width="15%">
                                <asp:Label ID="lblTypeYear" runat="server" BorderStyle="None"></asp:Label>
                            </td>
                            <td width="10%">
                                <telerik:RadComboBox ID="ddlYear" runat="server" 
                                    AllowCustomText="true" 
                                    AutoPostBack="True" 
                                    CausesValidation="false" DataTextField="Name" 
                                    DataValueField="Name" 
                                    EmptyMessage="...เลือกปี ..." Filter="Contains" 
                                    OnClientTextChange="onTextChange" 
                                    onselectedindexchanged="ddlYear_SelectedIndexChanged" Width="100px">
                                </telerik:RadComboBox>
                            </td>
                            <td width="5%">
                                <asp:RequiredFieldValidator ID="v9" runat="server" 
                                    ControlToValidate="ddlYear" 
                                    ErrorMessage="*">
                                </asp:RequiredFieldValidator>
                            </td>
                            <td align="left" width="30%">&#160;</td>
                        </tr>
                        <tr>
                            <td width="10%">
                                รอบการประเมิน :</td>
                            <td align="left" width="25%">
                                <asp:RadioButtonList ID="rdoAppraisal" runat="server" DataTextField="apr_name" 
                                    DataValueField="apr_seq" RepeatDirection="Horizontal">
                                </asp:RadioButtonList>
                            </td>
                            <td align="left" colspan="3" style="width: 15%">
                                <asp:Label ID="lblMsg" runat="server" ForeColor="Red" 
                                    Text="ไม่มีรอบการประเมินในปีที่เลือก!!" Visible="False"></asp:Label>
                            </td>
                            <td width="5%">
                                &nbsp;</td>
                            <td align="left" width="30%">
                                <asp:Button ID="btnSearch" runat="server" onclick="btnSearch_Click" 
                                    Text="ค้นหา" Width="80px" />
                            </td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                            <td align="left" colspan="4">
                                <telerik:RadTabStrip ID="RadTabStrip1" runat="server" 
                                    CausesValidation="False" 
                                    MultiPageID="RadMultiPage1" 
                                    ontabclick="RadTabStrip1_TabClick"
                                    SelectedIndex="2" Skin="Office2007">
                                    <Tabs>
                                        <telerik:RadTab Text="การบริหารค่าตอบแทน" Width="200px">
                                        </telerik:RadTab>
                                        <telerik:RadTab Text="การบริหารค่าตอบแทน(ต่อ)" Width="200px">
                                        </telerik:RadTab>
                                        <telerik:RadTab Selected="True" Text="บัญชีแนบท้ายคำสั่ง" Width="200px">
                                        </telerik:RadTab>
                                    </Tabs>
                                </telerik:RadTabStrip>
                            </td>
                            <td></td>
                            <td>&nbsp;</td>
                        </tr>
                    </table>
                    </div>
                    </div>
                    
<div class="moduleDivSlim1000">
<div class="moduleDivBottom1000">
    <table width ="980px" >
        <tr>
            <td>แบบทดสอบการบริหารค่าตอบแทน</td>
        </tr>
        <tr>
            <td >
            <asp:Panel ID="PanelGrid" 
                runat="server" 
                Width="980px" 
                Height="250px" ScrollBars="Auto" >

              <telerik:RadGrid ID="RadGrid2" runat="server" 
                    AllowFilteringByColumn="True" 
                    AllowMultiRowSelection="True" 
                    AllowPaging="false"
                    AllowSorting="True" 
                    AutoGenerateColumns="False" 
                    EnableAJAX="True" 
                    GridLines="None" 
                    OnItemCommand="RadGrid2_ItemCommand" 
                    Skin="Outlook" 
                    Width="978" 
                    onitemdatabound="RadGrid2_ItemDataBound">                    
                    
                    <MasterTableView AllowMultiColumnSorting="True" 
                        ClientDataKeyNames="pm_job_site_seq" DataKeyNames="pm_job_site_seq" 
                        NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                    <ExpandCollapseColumn Visible="True"></ExpandCollapseColumn>
                        
                        <Columns>                        
                        
                        <telerik:GridTemplateColumn 
                            ShowFilterIcon="false" 
                            AllowFiltering="false" >
                            <HeaderTemplate>
                                <asp:CheckBox ID="cb1" runat="server" 
                                    AutoPostBack="true" 
                                    OnCheckedChanged="cb1_Checked" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="cb2" runat="server" /></ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="20" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn DataField="job_site_name" 
                            HeaderText="สำนัก/กอง" 
                            ShowFilterIcon="false"
                            FilterControlWidth="100%"
                            CurrentFilterFunction="Contains"
                            AutoPostBackOnFilter="true"
                            UniqueName="job_site_name">
                            <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="mng_name" 
                            HeaderText="แบบทดสอบการบริหารค่าตอบแทน" 
                            ShowFilterIcon="false"
                            FilterControlWidth="100%"
                            CurrentFilterFunction="Contains"
                            AutoPostBackOnFilter="true"
                            UniqueName="mng_name">
                            <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="amount" HeaderText="งบประมาณ" 
                            ShowFilterIcon="false"
                            FilterControlWidth="100%"
                            CurrentFilterFunction="Contains"
                            AutoPostBackOnFilter="true"
                            UniqueName="amount"
                            DataFormatString="{0:#,##0.00}">
                            <HeaderStyle Wrap="False" HorizontalAlign="Right" />
                            </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="amount" HeaderText="งบประมาณขาด/เกิน" 
                            ShowFilterIcon="false"
                            FilterControlWidth="100%"
                            CurrentFilterFunction="Contains"
                            AutoPostBackOnFilter="true"
                            UniqueName="amount2"
                            DataFormatString="{0:#,##0.00}">
                            <HeaderStyle Wrap="False" HorizontalAlign="Right" />
                        </telerik:GridBoundColumn>                                
                 </Columns>
                 
                 <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                 </MasterTableView>
                 
                 <ClientSettings EnableRowHoverStyle="true" >
                    <Selecting AllowRowSelect="True" />
                    <Selecting AllowRowSelect="True"  />
                </ClientSettings>
                </telerik:RadGrid>

             </asp:Panel>
            </td>
         </tr>
     </table>
 </div>
 </div>
                 
<div class="moduleDivSlim1000">
<div class="moduleDivBottom1000">
<table width ="980px" ><tr><td>เลือกเงือนไข</td></tr><tr><td ><asp:Panel ID="PanelCondition" 
            runat="server" 
            Width="980px" 
            Height="250px" ScrollBars="Auto" >
            
            
            <telerik:RadGrid ID="RadGrid3" runat="server" AllowAutomaticDeletes="True" 
                    AllowFilteringByColumn="True" AllowMultiRowEdit="True" 
                    AllowMultiRowSelection="True" 
                    AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True" 
                    EnableAJAXLoadingTemplate="True" GridLines="None" 
                    Skin="Outlook" Width="960" onitemdatabound="RadGrid3_ItemDataBound" 
                            onitemcommand="RadGrid3_ItemCommand"><MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1" 
                        ClientDataKeyNames="class_seq" DataKeyNames="class_seq" 
                        InsertItemPageIndexAction="ShowItemOnCurrentPage" 
                        NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;"><CommandItemTemplate><table width="100%"><tr><td></td><td align="right"></td></tr></table></CommandItemTemplate><RowIndicatorColumn><HeaderStyle Width="20px" /></RowIndicatorColumn><ExpandCollapseColumn Visible="True"></ExpandCollapseColumn><GroupByExpressions><telerik:GridGroupByExpression><GroupByFields><telerik:GridGroupByField 
                                        FieldName="pos_type_name" 
                                        HeaderText="ตำแหน่ง" /></GroupByFields><SelectFields><telerik:GridGroupByField 
                                        FieldName="pos_type_name" 
                                        HeaderText="ตำแหน่ง : " 
                                        HeaderValueSeparator = " " /></SelectFields></telerik:GridGroupByExpression></GroupByExpressions>
                                        
                                        
                      <Columns>
                      
                            <telerik:GridTemplateColumn 
                                ShowFilterIcon="false" 
                                AllowFiltering="false" >
                                    <ItemTemplate>
                                        <asp:CheckBox ID="cbClass" runat="server" /> <%# Eval("class_name") %>
                                    </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Center" Width="95%" />
                                <ItemStyle Width="95%" />
                            </telerik:GridTemplateColumn>
                      </Columns>
                      
                      
                      
                      <EditFormSettings EditFormType="WebUserControl" ><EditColumn UniqueName="EditCommandColumn1"></EditColumn></EditFormSettings><PagerStyle Mode="NextPrevNumericAndAdvanced" /></MasterTableView><ClientSettings AllowColumnHide="True" AllowColumnsReorder="True" 
                        EnableRowHoverStyle="True" ReorderColumnsOnClient="True"><Selecting AllowRowSelect="True" EnableDragToSelectRows="true" /></ClientSettings>
                        
                        
                        
                        </telerik:RadGrid>
                        
                        
                        
                        
                        
                        
                        
                        
                        </asp:Panel></td></tr><tr><td width="100%" align="right"><br /><asp:Button ID="btnFilter" runat="server" Text="หน้าถัดไป" 
                            onclick="btnFilter_Click" /></td></tr></table></div></div></telerik:RadPageView>
                 
                
                <telerik:RadPageView ID="RadPageView2" runat="server"><div class="moduleDivSlim1000"><div class="moduleDivBottom1000"><table align="center" width ="980px" ><tr><td align="left" class="tableHeader">รายชื่อบุคลากร</td></tr></table><table width ="980px" ><tr><td ><asp:Panel ID="Panel2" 
            runat="server" 
            Width="980px" 
            Height="350px" ScrollBars="Auto" ><telerik:RadGrid 
            ID="RadGrid4" 
            runat="server" 
            AllowAutomaticDeletes="True" 
            AllowFilteringByColumn="True" 
            AllowMultiRowEdit="True" 
            AllowMultiRowSelection="True" 
            AllowPaging="True" 
            AllowSorting="True" 
            AutoGenerateColumns="False" 
            EnableAJAX="True" 
            EnableAJAXLoadingTemplate="True" 
            GridLines="None"      
            PageSize = "100"        
            Width = "978" Skin="Outlook" onitemdatabound="RadGrid4_ItemDataBound" 
                        onitemcommand="RadGrid4_ItemCommand"><MasterTableView 
                AllowMultiColumnSorting="True" 
                AllowFilteringByColumn="True"                
                CellSpacing="-1" 
                ClientDataKeyNames="Sequence"                 
                DataKeyNames="Sequence" 
                GroupLoadMode ="Server"                
                InsertItemPageIndexAction="ShowItemOnCurrentPage" 
                NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                <CommandItemTemplate>
                    <table width="100%"><tr><td></td></tr></table>
                </CommandItemTemplate>
                <Columns>
                <telerik:GridTemplateColumn  AllowFiltering="false">
                    <ItemTemplate>
                        <asp:CheckBox ID="cb4" runat="server" />
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" Width="20" />
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn 
                    DataField="duplicated" 
                    DataType="System.Int32" 
                    HeaderText="Sequence" 
                    UniqueName="duplicated"   
                    Visible="False">
                </telerik:GridBoundColumn>
                <telerik:GridTemplateColumn
                    HeaderText = "ชื่อ-สกุล"
                    DataField = "first_name"
                    FilterControlWidth = "100%"
                    AutoPostBackOnFilter="true" 
                    CurrentFilterFunction="Contains" 
                    ShowFilterIcon="False">
                    <ItemTemplate><%# Eval("first_name")%>  &nbsp;</ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center"/>
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn 
                    DataField="job_site_name" 
                    HeaderText="สังกัด" 
                    UniqueName="job_site_name"                         
                    FilterControlWidth="100%"
                    AutoPostBackOnFilter="true" 
                    CurrentFilterFunction="Contains" 
                    ShowFilterIcon="False">
                    <HeaderStyle Width = "100px" HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign = "Left" />
                </telerik:GridBoundColumn>
            <telerik:GridBoundColumn 
                    DataField="pos_name" 
                    HeaderText="ตำแหน่ง" 
                    UniqueName="pos_name" 
                        
                        FilterControlWidth="100%"
                        AutoPostBackOnFilter="true" 
                        CurrentFilterFunction="Contains" 
                        ShowFilterIcon="False"><HeaderStyle Width = "100px" HorizontalAlign="Center" /><ItemStyle HorizontalAlign = "Left" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                        DataField="pos_ref" 
                        HeaderText="เลขที่ตำแหน่ง" 
                        UniqueName="pos_ref" 
                        
                        FilterControlWidth="100%"
                        AutoPostBackOnFilter="true" 
                        CurrentFilterFunction="Contains" 
                        ShowFilterIcon="False"><HeaderStyle Width = "100px" HorizontalAlign="Center" /><ItemStyle HorizontalAlign = "Center" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                        DataField="salary" 
                        HeaderText="เงินเดือนเดิม" 
                        UniqueName="salary" 
                        
                        FilterControlWidth="100%"
                        AutoPostBackOnFilter="true" 
                        CurrentFilterFunction="Contains" 
                        ShowFilterIcon="False" DataFormatString="{0:#,##0.00}"><HeaderStyle Width = "100px" HorizontalAlign="Center" /><ItemStyle HorizontalAlign = "Right" Wrap="False" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                        DataField="sal_base" 
                        HeaderText="ฐานในการคำนวณ" 
                        UniqueName="sal_base" 
                        
                        FilterControlWidth="100%"
                        AutoPostBackOnFilter="true" 
                        CurrentFilterFunction="Contains" 
                        ShowFilterIcon="False"><HeaderStyle Width = "100px" HorizontalAlign="Center" /><ItemStyle HorizontalAlign = "Center" Wrap="False" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                        DataField="percen_promote" 
                        HeaderText="ร้อยละที่ได้เลื่อน" 
                        UniqueName="percen_promote" 
                        
                        FilterControlWidth="100%"
                        AutoPostBackOnFilter="true" 
                        CurrentFilterFunction="Contains" 
                        ShowFilterIcon="False" DataFormatString="{0:#,##0.00}"><HeaderStyle Width = "100px" HorizontalAlign="Center" /><ItemStyle HorizontalAlign = "Center" Wrap="False" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                        DataField="amount" 
                        HeaderText="จำนวนเงินที่ได้เลื่อน" 
                        UniqueName="amount" 
                        
                        FilterControlWidth="100%"
                        AutoPostBackOnFilter="true" 
                        CurrentFilterFunction="Contains" 
                        ShowFilterIcon="False" DataFormatString="{0:#,##0.00}"><HeaderStyle Width = "100px" HorizontalAlign="Center" /><ItemStyle HorizontalAlign = "Right" Wrap="False" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                        DataField="t_new_salary" 
                        HeaderText="เงินเดือนที่ได้รับ" 
                        UniqueName="t_new_salary" 
                        
                        FilterControlWidth="100%"
                        AutoPostBackOnFilter="true" 
                        CurrentFilterFunction="Contains" 
                        ShowFilterIcon="False" DataFormatString="{0:#,##0.00}"><HeaderStyle Width = "100px" HorizontalAlign="Center" /><ItemStyle HorizontalAlign = "Right" Wrap="False" /></telerik:GridBoundColumn></Columns><ParentTableRelation><telerik:GridRelationFields DetailKeyField = "Sequence" MasterKeyField = "Sequence" /></ParentTableRelation></MasterTableView><ClientSettings AllowColumnHide="True" AllowColumnsReorder="True" 
                        EnableRowHoverStyle="True" ReorderColumnsOnClient="True"><Selecting AllowRowSelect="True" EnableDragToSelectRows="true" /></ClientSettings></telerik:RadGrid></asp:Panel><br /><br /><table class="style1"><tr><td align="center"><asp:Button ID="btnSave" runat="server" onclick="btnSave_Click" Text="บันทึก" 
                                    Width="146px" Visible="False" /></td></tr></table></td></tr></table></div></div><br /><br /><br /><br /></telerik:RadPageView>

                
                
                
        <telerik:RadPageView ID="RadPageView3" runat="server">
        <div class="moduleDivSlim1000">
        <div class="moduleDivBottom1000">
        <table width ="980px" ><tr><td>บัญชีรายละเอียด <asp:Label ID="lblCmdName" runat="server" Text="-" ForeColor="Blue"></asp:Label>&#160;&#160;&#160;&#160;&#160; แนบท้ายคำสั่งที่ <asp:Label ID="lblRefNo" runat="server" Text="-" ForeColor="Blue"></asp:Label>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ลงวันที่ <asp:Label ID="lblAppDate" runat="server" Text="-" ForeColor="Blue"></asp:Label></td></tr><tr><td ><asp:Panel ID="PanelDetal" 
            runat="server" 
            Width="980px" 
            Height="350px" ScrollBars="Auto" >
            <telerik:RadGrid ID="RadGrid1" runat="server" 
                AllowAutomaticDeletes="True" 
                AllowFilteringByColumn="True" AllowMultiRowEdit="True" 
                AllowMultiRowSelection="True" AllowPaging="True" 
                AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True" 
                EnableAJAXLoadingTemplate="True" GridLines="None" 
                OnItemCommand="RadGrid1_ItemCommand" Skin="Outlook" Width="978px">
                <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1" 
                    ClientDataKeyNames="cmd_dtls_seq" 
                    CommandItemDisplay="Top" DataKeyNames="cmd_dtls_seq" 
                    InsertItemPageIndexAction="ShowItemOnCurrentPage" 
                    NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                    <CommandItemTemplate>
                        <table width="100%">
                            <tr>
                                <td>
                                <asp:LinkButton ID="cmdAddNew" runat="server" CausesValidation="False" 
                                            CommandName="InitInsert" 
                                            Visible="<%# !RadGrid1.MasterTableView.IsItemInserted && RadGrid2.EditIndexes.Count <= 0 %>"> <img alt="" src="../Images/Buttons/AddRecord.gif" 
                                            style="border: 0px; vertical-align: middle;" /> เพิ่มรายชื่อบุคลากร</asp:LinkButton>&#160;&#160; </td><td align="right"></td></tr>
                        </table>
                    </CommandItemTemplate>
                    <RowIndicatorColumn>
                    <HeaderStyle Width="20px" /></RowIndicatorColumn>
                    <ExpandCollapseColumn Visible="True"></ExpandCollapseColumn>
                    <Columns>
                    <telerik:GridEditCommandColumn 
                        ButtonType="ImageButton"
                        EditText="คลิกเพื่อแก้ไขข้อมูล">
                        <ItemStyle Width="15px" />
                    </telerik:GridEditCommandColumn>
                    <telerik:GridButtonColumn ButtonType="ImageButton" 
                        CommandName="Delete" 
                        ConfirmDialogType="RadWindow" ConfirmText="ลบข้อมูลที่เลือก?" 
                        Text="คลิกเพื่อลบข้อมูล" UniqueName="column1">
                        <HeaderStyle HorizontalAlign="Center" Width="10px" />
                        <ItemStyle HorizontalAlign="Center" Width="10px" />
                    </telerik:GridButtonColumn>
                    <telerik:GridTemplateColumn
                        HeaderText = "ชื่อ-สกุล"
                        DataField = "first_name"
                        FilterControlWidth = "100%"
                        AutoPostBackOnFilter="true" 
                        CurrentFilterFunction="Contains" 
                        ShowFilterIcon="False">
                        <ItemTemplate><%# Eval("full_name")%>  &nbsp;</ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center"/>
                        </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn 
                        DataField="new_job_site_name" 
                        HeaderText="สังกัด" 
                        UniqueName="new_job_site_name"                         
                        FilterControlWidth="100%"
                        AutoPostBackOnFilter="true" 
                        CurrentFilterFunction="Contains" 
                        ShowFilterIcon="False">
                        <HeaderStyle Width = "100px" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign = "Left" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn 
                        DataField="new_pos_name" 
                        HeaderText="ตำแหน่ง" 
                        UniqueName="new_pos_name"                         
                        FilterControlWidth="100%"
                        AutoPostBackOnFilter="true" 
                        CurrentFilterFunction="Contains" 
                        ShowFilterIcon="False">
                        <HeaderStyle Width = "100px" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign = "Left" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="class_name" HeaderText="ระดับ" 
                        ShowFilterIcon="false"
                        FilterControlWidth="100%"
                        CurrentFilterFunction="Contains"
                        AutoPostBackOnFilter="true"
                        UniqueName="class_name">
                        <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                        <ItemStyle Width="100px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn 
                        DataField="new_pos_ref" 
                        HeaderText="เลขที่ตำแหน่ง" 
                        UniqueName="new_pos_ref"                         
                        FilterControlWidth="100%"
                        AutoPostBackOnFilter="true" 
                        CurrentFilterFunction="Contains" 
                        ShowFilterIcon="False">
                        <HeaderStyle Width = "100px" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign = "Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn 
                        DataField="salary" 
                        HeaderText="เงินเดือนเดิม" 
                        UniqueName="salary"                         
                        FilterControlWidth="100%"
                        AutoPostBackOnFilter="true" 
                        CurrentFilterFunction="Contains" 
                        ShowFilterIcon="False" DataFormatString="{0:#,##0.00}">
                        <HeaderStyle Width = "100px" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign = "Right" Wrap="False" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn 
                        DataField="prm_base" 
                        HeaderText="ฐานในการคำนวณ" 
                        UniqueName="prm_base"                         
                        FilterControlWidth="100%"
                        AutoPostBackOnFilter="true" 
                        CurrentFilterFunction="Contains" 
                        ShowFilterIcon="False">
                        <HeaderStyle Width = "100px" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign = "Center" Wrap="False" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn 
                        DataField="prm_percent" 
                        HeaderText="ร้อยละที่ได้เลื่อน" 
                        UniqueName="prm_percent"                         
                        FilterControlWidth="100%"
                        AutoPostBackOnFilter="true" 
                        CurrentFilterFunction="Contains" 
                        ShowFilterIcon="False" DataFormatString="{0:#,##0.00}">
                        <HeaderStyle Width = "100px" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign = "Center" Wrap="False" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn 
                        DataField="prm_amount" 
                        HeaderText="จำนวนเงินที่ได้เลื่อน" 
                        UniqueName="prm_amount"                         
                        FilterControlWidth="100%"
                        AutoPostBackOnFilter="true" 
                        CurrentFilterFunction="Contains" 
                        ShowFilterIcon="False" DataFormatString="{0:#,##0.00}">
                        <HeaderStyle Width = "100px" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign = "Right" Wrap="False" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn 
                        DataField="new_salary" 
                        HeaderText="เงินเดือนที่ได้รับ" 
                        UniqueName="new_salary"                         
                        FilterControlWidth="100%"
                        AutoPostBackOnFilter="true" 
                        CurrentFilterFunction="Contains" 
                        ShowFilterIcon="False" DataFormatString="{0:#,##0.00}">
                        <HeaderStyle Width = "100px" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign = "Right" Wrap="False" />
                    </telerik:GridBoundColumn>
                </Columns>
                <EditFormSettings EditFormType="WebUserControl" 
                    UserControlName="../UserControls/PR_SalaryPromoteCmdDtls.ascx">
                    <EditColumn UniqueName="EditCommandColumn1"></EditColumn>
                </EditFormSettings>
                <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                </MasterTableView>
                <ClientSettings AllowColumnHide="True" AllowColumnsReorder="True" 
                    EnableRowHoverStyle="True" ReorderColumnsOnClient="True">
                    <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
                </ClientSettings>
            </telerik:RadGrid>
        </asp:Panel></td></tr></table><br />
        <table class="style1">
            <tr>
                <td align="center">
                <asp:Button ID="btnPrint" runat="server" Text="พิมพ์" Width="82px" 
                            Visible="False" />
                </td>
            </tr>
        </table>
        </div></div>
        </telerik:RadPageView>     
    </telerik:RadMultiPage>            
    </div>
    </form>
</body>
</html>
